package com.azirkxs.clothes.cys.service.impl;

import com.azirkxs.clothes.cys.entity.ArmoireClothes;
import com.azirkxs.clothes.cys.mapper.ArmoireClothesMapper;
import com.azirkxs.clothes.cys.service.IArmoireClothesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author azirkxs
 * @since 2023-04-09
 */
@Service
public class ArmoireClothesServiceImpl extends ServiceImpl<ArmoireClothesMapper, ArmoireClothes> implements IArmoireClothesService {

    @Override
    public Map<String, Object> getClothesByArmoireId(Integer armoire_id) {
        Map<String,Object> data = new HashMap<>();
        List<Map> clothesList = this.baseMapper.getClothesByArmoireId(armoire_id);
        data.put("clothesId",clothesList);
        return data;
    }
}
